<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "temp_user".
 *
 * @property int $id
 * @property string $customer_id
 * @property string $nickname
 * @property string $avatar
 * @property string $open_id
 */
class TempUser extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'temp_user';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['customer_id', 'nickname', 'avatar', 'open_id'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'customer_id' => 'Customer ID',
            'nickname' => 'Nickname',
            'avatar' => 'Avatar',
            'open_id' => 'Open ID',
        ];
    }
}
